def enumFunction(**enums):
    return type('EnumFunction', (), enums)

Function = enumFunction(    local0='local0',
                            local1='local1',
                            local2='local2',
                            local3='local3',
                            local4='local4',
                            local5='local5',
                            local6='local6',
                            local7='local7',
                            auth='auth',
                            authpriv='authpriv',
                            cron='cron',
                            daemon='daemon',
                            kern='kern',
                            lpr='lpr',
                            mail='mail',
                            mark='mark',
                            news='news',
                            syslog='syslog',
                            user='user',
                            uucp='uucp',
                            all='*'             )

FunctionDict = {    'local0':Function.local0,
                    'local1':Function.local1,
                    'local2':Function.local2,
                    'local3':Function.local3,
                    'local4':Function.local4,
                    'local5':Function.local5,
                    'local6':Function.local6,
                    'local7':Function.local7,
                    'auth':Function.auth,
                    'authpriv':Function.authpriv,
                    'cron':Function.cron,
                    'daemon':Function.daemon,
                    'kern':Function.kern,
                    'lpr':Function.lpr,
                    'mail':Function.mail,
                    'mark':Function.mark,
                    'news':Function.news,
                    'syslog':Function.syslog,                
                    'user':Function.user,
                    'uucp':Function.uucp,
                    '*':Function.all           }
